﻿using System.ComponentModel.DataAnnotations;

namespace xzz.webapi.Models.DTO
{
    public class AddRegionRequestDto
    {
        [Required]
        [MinLength(3, ErrorMessage = "Code Error")]
        [MaxLength(10, ErrorMessage = "Code Error")]
        public string Code { get; set; }
        [Required]
        [MaxLength(100, ErrorMessage = "Name Error")]
        public string Name { get; set; }
        public string? RegionIMageUrl { get; set; }
    }
}
